﻿using System.ComponentModel;

namespace King.Api.Models.Dto
{
    /// <summary>
    /// 生产信息
    /// </summary>
    public class ProductionDto
    {
        /// <summary>
        /// 当前班组
        /// </summary>
        public string current_team { get; set; }
        /// <summary>
        /// 产品类型
        /// </summary>
        public string product_type { get; set; }
        /// <summary>
        /// 计划产量
        /// </summary>
        public int plan_num { get; set; }
        /// <summary>
        /// 当前班组产量
        /// </summary>
        public int current_team_num { get; set; }
        /// <summary>
        /// 所有班组总产量
        /// </summary>
        public int all_team_num { get; set; }
        /// <summary>
        /// 计划剩余产量
        /// </summary>
        public int surplus_num { get; set; }
        /// <summary>
        /// 产量计数修改
        /// </summary>
        public int num_modify { get; set; }
        /// <summary>
        /// 上一台生产用时
        /// </summary>
        public int last_production_time { get; set; }
        /// <summary>
        /// 本台生产用时
        /// </summary>
        public int now_production_time { get; set; }
        /// <summary>
        /// 拉箱倒计时设定
        /// </summary>
        public int box_countdown_set { get; set; }
    }

    public enum TeamInfo
    {
        [Description("凤A总装")]
        A = 0,
        [Description("凤B总装")]
        B = 1,
        [Description("班组错误")]
        Error = 2
    }

    public enum ProductType
    {
        [Description("20GP")]
        _20GP = 0,
        [Description("40GP")]
        _40GP = 1,
        [Description("40HC")]
        _40HC = 2,
        [Description("45HC")]
        _45HC = 3,
        [Description("箱型错误")]
        Error = 4

    }
}
